import {REGISTER_SUCCESS, REGISTER_FAIL} from '../contants/ActionTypes'

const initialState = {
    RegsisterState:0//0是初始，1是success，2是fail
}


export default function register(state = initialState, action) {
    switch(action.type) {
        case REGISTER_SUCCESS:
            return {
                RegsisterState:1
            }
        case REGISTER_FAIL:
            return{
                RegsisterState:2
            }
        default:
            return state;            
    }   

}
